package com.store.controller.xlp;

import com.store.entity.Seller;
import com.store.service.xlp.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/register_xlp")
public class RegisterController {
    @Autowired
    private RegisterService registerService;
    @RequestMapping("/register")
    public boolean register(String name,String password){
        Seller seller=new Seller();
        seller.setName("name");
        seller.setPassword("password");
        System.out.println(registerService.addSeller(seller));
            return registerService.addSeller(seller);
    }



}
